package com.gxa.mapper.points;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gxa.dto.pointsdto.ExchangeRecordDto;
import com.gxa.entity.points.ExchangeRecord;
import com.gxa.vo.ExchangeVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 礼品兑换记录表 Mapper 接口
 * </p>
 *
 * @author yjl
 * @since 2022-10-17 10:36:06
 */
@Mapper
public interface ExchangeRecordMapper extends BaseMapper<ExchangeRecord> {
    List<ExchangeRecordDto> queryAll();
    ExchangeRecordDto queryById(Integer id);
    void updateById(Integer id,Date date);
    void upateByIdAndScor(String userNumber,Integer score);
    void add(ExchangeRecordDto exchangeRecordDto);
    void updateByUserName(String userName, Date date);
    List<ExchangeRecordDto> queryByVo(ExchangeVo exchangeVo);
    void updateByUserNumAndScore(ExchangeRecordDto exchangeRecordDto);

}
